package matchs

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type AskRouter struct{}

func (m *AskRouter) InitAskRouter(Router *gin.RouterGroup) {
	askRouter := Router.Group("ask").Use(middleware.JWTAuth())
	{
		askRouter.POST("create", matchAskApi.CreateAskTask)                  // 创建问问任务
		askRouter.GET("list", matchAskApi.GetUserAskTaskListHandler)         // 获取用户问问任务列表
		askRouter.GET("detail", matchAskApi.GetAskTaskDetailHandler)         // 获取单个问问任务详情
		askRouter.POST("reply", matchAskApi.ReplyAskTaskHandler)             // 回复问问任务
		askRouter.POST("accept-reply", matchAskApi.AcceptAskReplyHandler)    // 接受问问回复
	}
}
